/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bd.util;
import java.io.*;
import bd.master.*;
import bd.balancer.*;
/**
 *
 * @author niyaz
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Write who you are: 1 - balanser, 2 - master, 3 - slave");
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        try {
            str = br.readLine();
        } catch (Exception e) {
        }
        ;

        if (str.equalsIgnoreCase("2"))
        {
            (new Master()).run();
        };

        if (str.equalsIgnoreCase("1"))
        {
            (new Balancer()).run();
        };



    }

}
